package com.ruifight.data.bean;

/**
 * Created by RuiFight on 2016/12/7.
 */
public class ParamDataBean {



    public  static void returnParam(String param[]){

        System.out.println("param的长度为"+param.length);

        for(int i=0;i<param.length;i++){


//            if(i%2==0){
//
//                System.out.println("测试Param"+param[i]);
//            }
           if(i%2==0){

               if(param[i].equals("0")){

                   System.out.println("硬件版本号"+param[i+1]);
               }

               if(param[i].equals("1")){

                   System.out.println("软件版本号"+param[i+1]);
               }
               if(param[i].equals("2")){

                   if(param[i+1].equals("1")){

                       System.out.println("工作模式:待机");
                   }else{

                       System.out.println("工作模式:工作");

                   }

               }
               if(param[i].equals("3")){

                   System.out.println("采样周期"+param[i+1]);
               }
               if(param[i].equals("4")){

                   System.out.println("采样时长"+param[i+1]);
               }
               if(param[i].equals("5")){

                   System.out.println("上传周期"+param[i+1]);
               }
               if(param[i].equals("6")){

                   System.out.println("短信中心1号码"+param[i+1]);
               }
               if(param[i].equals("7")){

                   System.out.println("短信中心2号码"+param[i+1]);
               }
               if(param[i].equals("8")){

                   System.out.println("经度"+param[i+1]);
               }
               if(param[i].equals("9")){

                   System.out.println("纬度"+param[i+1]);
               }
           }


        }

    }
}
